From: Adrian Robert Date: Fri, 21 Aug 2009 19:36:50 +0000 (+0000) Subject: (ns_get_color): fix typo in last change X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10977 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=159980cf71819f63db1d991e3b8565bd8e29d0a9;p=emacs.git (ns_get_color): fix typo in last change --- diff --git a/src/nsterm.m b/src/nsterm.m index 9c7d35fcfee..c6bcf68e3b8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1378,7 +1378,7 @@ ns_get_color (const char *name, NSColor **col) else if (!strncmp(name, "rgb:", 4)) /* A newer X11 format -- rgb:r/g/b */ { strcpy(hex, name + 4); - scaling = (strlen(hex) - 2) / 4; + scaling = (strlen(hex) - 2) / 3; } else if (name[0] == '#') /* An old X11 format; convert to newer */ {